package com.vivianwei.sqlfix;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author wangwei
 * @Date2021/3/10 11:37 上午
 * @Version V1.0
 **/
public class UTF8Process extends SqlProcess{

    public UTF8Process(List<String> tables, String excelPath, String genPath, String sheetName) {
        super(tables, excelPath, genPath, sheetName);
    }

    @Override
    protected String sql(Map line) {
        return String.format("ALTER TABLE %s CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;\n",
                line.get("表名"));
    }
}
